package com.click369.crm.mapper;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.click369.crm.pojo.CStaff;

public interface CStaffMapper {
	
    int deleteByPrimaryKey(Integer id);

    int insert(CStaff record);

    int insertSelective(CStaff record);

    CStaff selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CStaff record);

    int updateByPrimaryKey(CStaff record);
    
    List<Map> findListWithPname(CStaff s);
    
    List<HashMap> selectAdmin();
    
	List<CStaff> getStaffByUsernameAndPassword(@Param("username")String username,@Param("password")String password);

	HashSet<String> getRoleCodeByUsername(@Param("username")String username);
	
	HashSet<String> getFunctionCodeByUsername(@Param("username")String username);
}